DO NOT MERGE: fix(engine-runner): send StopCode.Ok for engine-initiated stops#4861
DO NOT MERGE: fix(engine-runner): send StopCode.Ok for engine-initiated stops#4861
Conversation
|
🚅 Deployed to the rivet-pr-4861 environment in rivet-frontend
|
Code ReviewOverviewThis PR fixes a bug in CorrectnessThe fix is logically sound. The The comment is well-written and explains the non-obvious invariant — specifically why Issues and Observations1. Targets a deprecated path Per
If active workloads still run on this runner, the fix is necessary. If not, merging it to a deprecated path has limited value and could mislead contributors. 2. Parity gap:
async #handleCommandStopActor(commandWrapper: protocol.CommandWrapper) {
const stopCommand = commandWrapper.inner.val as protocol.CommandStopActor;
const actorId = commandWrapper.checkpoint.actorId;
const generation = commandWrapper.checkpoint.generation;
await this.forceStopActor(actorId, generation); // stopIntentSent never set
}
3. Rust envoy-client is unaffected by design The Rust path ( 4. Line 1215 also calls Minor NitThe comment on line 1226–1229 is helpful, but the SummaryThe fix is correct and the code change is small and clean. The two blockers before merging are:
|
DO NOT MERGE